<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="RoverCommodity.RoverCommodityDeal"%>
<html>
  <head>
    <title>删除商品信息</title>
  </head>
  
  <body><% 
  RoverCommodityDeal RoverCommodity=new RoverCommodityDeal();
  String k=(String)request.getParameter("DealComID");
  String Path=(String)request.getParameter("Path");
  System.out.print(Path);
  String realPath=request.getRealPath("/")+Path;
  out.print("<script>alert('"+k+"')</script>");
  out.print("<script>alert('"+Path+"')</script>");
  System.out.print(realPath);
  if(RoverCommodity.DeleteRoverCommodity(k)==1&&RoverCommodity.DelFile(realPath)==1)
  {
       out.print("<script>alert('删除成功 ')</script>");
       
  }
  else
  {
        out.print("<script>alert('删除失败  ')</script>");
        
  }
  
  %>
   <script type="text/javascript">
        window.location.href="RoverCommodityDeal.jsp";    
   </script>


  </body>
</html>
